package com.gengealogy.net.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gengealogy.net.dao.CircleDao;
import com.gengealogy.net.po.Baby;
import com.gengealogy.net.po.Circle;
import com.gengealogy.net.service.CircleService;

@Service("circleService")
@Transactional
public class CircleServiceImpl implements CircleService{
	@Autowired
	private CircleDao circleDao;

	public CircleDao getCircleDao() {
		return circleDao;
	}

	public void setCircleDao(CircleDao circleDao) {
		this.circleDao = circleDao;
	}
	
	@Override
	public List<Circle> findCircle(int user_id) {
		// TODO Auto-generated method stub
		return circleDao.findCircle(user_id);
	}

	@Override
	public int addCircle(Circle circle) {
		// TODO Auto-generated method stub
		return circleDao.addCircle(circle);
	}

	@Override
	public List<Circle> findAllCircle() {
		// TODO Auto-generated method stub
		return circleDao.findAllCircle();
	}
}
